let mongoose = require('mongoose');
let schema = new mongoose.Schema({
    requestTime: {type: Number},
    requestAt: {type: Date,default:Date.now, index: -1},
    requestBody: {type: Object},
    responseBody: {type: Object},
    requestHeaders: {type: Object},
    url: {type: String},
    method: {type: String}
}, {
    strict:false,
    autoIndex: 'requestAt',
    versionKey: false
});
exports.dbType = "mongodb";
exports.fnArr = ["findWithCounts"];
exports.model = mongoose.model('requestLog', schema);

